#!/bin/bash
projectPath=$(cd $(dirname $0)/.. && pwd)
projectName="${projectPath##*/}"



# ffmpeg库路径
export LD_LIBRARY_PATH=/opt/data/sip/ffmpeg_lib/lib:$LD_LIBRARY_PATH
# yaml-cpp库路径
export LD_LIBRARY_PATH=/opt/data/sip/yaml-cpp/build:$LD_LIBRARY_PATH
# jrtp库路径
export LD_LIBRARY_PATH=/opt/data/sip/jrtp/jrtplib-3.11.1_org_no_thread/src:$LD_LIBRARY_PATH
# exosip库路径
export LD_LIBRARY_PATH=/opt/data/sip/exosip/libosip2-5.0.0/src/osipparser2/.libs:/opt/data/sip/exosip/libosip2-5.0.0/src/osip2/.libs:/opt/data/sip/exosip/libexosip2-5.0.0/src/.libs:$LD_LIBRARY_PATH
# eXosip库路径
export LD_LIBRARY_PATH=/opt/data/sip/jrtp/jrtplib-3.11.1_org_no_thread/src:$LD_LIBRARY_PATH
# zlog库路径
export LD_LIBRARY_PATH=/opt/data/log/zlog-1.2.14/src:$LD_LIBRARY_PATH

cd ${projectPath}
./script/stop.sh

./build/${projectName} 1 64 1

# ./build/${projectName} 1 32 1 > ${projectPath}/logs/${projectName}_1.log 2>&1 &
# echo "./build/${projectName} 257 512 1 > ${projectPath}/logs/${projectName}_1.log 2>&1 &"
# ./build/${projectName} 257 512 1 > ${projectPath}/logs/${projectName}_2.log 2>&1 &
# \echo "./build/${projectName} 513 768 1 > ${projectPath}/logs/${projectName}_1.log 2>&1 &"
# ./build/${projectName} 513 768 1 > ${projectPath}/logs/${projectName}_3.log 2>&1 &
# echo "./build/${projectName} 769 1024 1 > ${projectPath}/logs/${projectName}_1.log 2>&1 &"
# ./build/${projectName} 769 1024 1 > ${projectPath}/logs/${projectName}_4.log 2>&1 &


# tail -f ${projectPath}/logs/${projectName}_1.log
